//
//  BlockUtility.m
//  ENTBoostChat
//
//  Created by zhong zf on 14-8-5.
//  Copyright (c) 2014年 EB. All rights reserved.
//

#import "BlockUtility.h"

@implementation BlockUtility

//+ (void)syncPerformBlockInMainQueue:(void(^)(void))block
//{
//    dispatch_sync(dispatch_get_main_queue(), block);
//}

+ (void)performBlockInMainQueue:(void(^)(void))block
{
    dispatch_async(dispatch_get_main_queue(), block);
}

+ (void)performBlockInGlobalQueue:(void (^)(void))block
{
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block);
}
@end
